#coding:utf-8
import os
cwd=os.getcwd()
print(cwd)
try:
    os.chdir('G:\wamp\www\wy')
    tt=os.popen('git pull').read()

    os.system('git log')
except Exception as e:
    print(str(e))
finally:
    print('ok')

print(os.getcwd())
import sendMail
#tt=os.popen('git log --author=json --since="2016-08-1" --until="2016-08-5" -p').read()
#tt=tt.replace("commit","<br/>commit")
#print(tt)
sendMail.sendMail('1536725014@qq.com','宝宝爱你','')
#os.system('ping www.baidu.com')